<template>
  <div class="team-members animate__animated animate__fadeIn">
    <h1 class="animate__animated animate__fadeInDown">小组成员信息</h1>
    <div class="member-list">
      <div 
        class="member-card animate__animated animate__fadeInLeft" 
        v-for="member in leaders" 
        :key="member.name"
      >
        <h2>{{ member.name }}</h2>
        <p class="role">组长</p>
      </div>
      <div 
        class="member-card animate__animated animate__fadeInRight" 
        v-for="member in members" 
        :key="member.name"
      >
        <h2>{{ member.name }}</h2>
        <p class="role">组员</p>
      </div>
    </div>
  </div>
</template>

<script setup>
import { ref } from 'vue';
import 'animate.css';

// 定义响应式变量，包含小组成员的信息
const leaders = ref([
  { name: 'ph' } // 组长
]);

const members = ref([
  { name: 'swh' },
  { name: 'dsh' },
  { name: 'srl' }
]);
</script>

<style scoped>
.team-members {
  max-width: 800px;
  margin: auto;
  padding: 30px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(240, 248, 255, 0.95) 100%);
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

h1 {
  text-align: center;
  color: #1a73e8;
  font-size: 2.5em;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.member-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.member-card {
  background: linear-gradient(145deg, #ffffff, #f0f8ff);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(26, 115, 232, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 115, 232, 0.1);
}

.member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(26, 115, 232, 0.2);
}

.member-card h2 {
  margin: 0;
  color: #1a73e8;
  font-size: 1.5em;
  font-weight: 600;
}

.role {
  font-size: 1em;
  color: #5f6368;
  margin-top: 8px;
  font-weight: 500;
  letter-spacing: 0.5px;
}
</style>